package com.xfly.app.ui;

import android.os.Bundle;
import android.widget.ImageView;

import com.ptmall.app.R;
import com.ptmall.app.base.BaseMvpActivity;
import com.ptmall.app.utils.GlideUtil;
import com.ptmall.app.view.TitleBarView;

public class HtDetilActivity extends BaseMvpActivity {

    TitleBarView title_bar;
    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setView(R.layout.activity_htdetil);
    }

    @Override
    public void initViews() {
        title_bar = findViewById(R.id.title_bar);
        imageView = findViewById(R.id.img);

        title_bar.setText(getIntent().getStringExtra("title")+"");
        GlideUtil.showImg(getContext(),getIntent().getStringExtra("url"),imageView);
    }

    @Override
    public void initEvents() {
        title_bar.setOnTitleBarClickListener(new TitleBarView.TitleBarClickListener() {
            @Override
            public void leftClick() {
                finish();
            }

            @Override
            public void rightClick() {

            }
        });
    }
}
